package com.example.redislearning.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 课程实体类
 * 对应表：courses
 */
@Data
public class Course {
    // Getter和Setter方法
    private Integer id;
    private String title;
    private String description;
    private String instructor;
    private Integer categoryId;
    private Double price;
    private Double originalPrice;
    private Integer duration;
    private Integer level;
    private String coverImage;
    private String videoUrl;
    private Integer salesCount;
    private Double rating;
    private Integer ratingCount;
    private Integer viewCount;
    private Integer status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

}